package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.GoodsInfo;

/**
 * goodsService接口
 *
 * @author ruoyi
 * @date 2021-08-20
 */
public interface IGoodsInfoService
{
    /**
     * 查询goods
     *
     * @param id goods主键
     * @return goods
     */
    public GoodsInfo selectGoodsInfoById(Long id);

    /**
     * 查询goods列表
     *
     * @param goodsInfo goods
     * @return goods集合
     */
    public List<GoodsInfo> selectGoodsInfoList(GoodsInfo goodsInfo);

    /**
     * 新增goods
     *
     * @param goodsInfo goods
     * @return 结果
     */
    public int insertGoodsInfo(GoodsInfo goodsInfo);

    /**
     * 修改goods
     *
     * @param goodsInfo goods
     * @return 结果
     */
    public int updateGoodsInfo(GoodsInfo goodsInfo);

    /**
     * 批量删除goods
     *
     * @param ids 需要删除的goods主键集合
     * @return 结果
     */
    public int deleteGoodsInfoByIds(Long[] ids);

    /**
     * 删除goods信息
     *
     * @param id goods主键
     * @return 结果
     */
    public int deleteGoodsInfoById(Long id);
}